import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'photo2',
    redirect: '/photo2/index',
    component: () => import('../views/HomeView'),
    children: [
      {
        path: '/photo/index',
        name: 'photo',
        component: () => import('../views/photo/index'),
      },
      {
        path: '/layer/index',
        name: 'layer',
        component: () => import('../views/layer/index')
      },
      {
        path: '/zoning/index',
        name: 'zoning',
        component: () => import('../views/zoning/index')
      },
      {
        path: '/photo2/index',
        name: 'photo2',
        component: () => import('../views/photo2/index')
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
